package com.annotationApplicationContext.ch03;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

//@Configuration
//@ComponentScan(basePackages = "com.annotationApplicationContext.ch03")
public class Config {

    @Bean
    public com.annotationApplicationContext.ch02.Student student2(){
        return new com.annotationApplicationContext.ch02.Student();
    }

    @Bean
    public Student student3(){
        return new Student();
    }
}
